﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="dondathang.aspx.cs" Inherits="Admin_dondathang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="740px">
        <tr>
            <td>
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View runat="server" ID="View1">


                        <table align="center" border="0" cellpadding="5" cellspacing="5" 
                            style="width: 955px">
                              <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td style="width: 170px">
                                                Tìm Kiếm Tên Users
                                            </td>
                                            <td align="center" style="width:300px">
                                                <asp:TextBox ID="txttim" Width="250px" runat="server"></asp:TextBox>
                                            </td>
                                            <td style="width: 200px">
                                                <asp:Button ID="btntmkiem" runat="server" BackColor="#A52B2B" ForeColor="White" Text="Tìm Kiếm" Style="height: 26px" 
                                                    onclick="btntmkiem_Click" />
                                                <asp:Button ID="Button1" runat="server" BackColor="#A52B2B" ForeColor="White" onclick="Button1_Click" Text="Trở về" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                        <tr>
                                <td align="center">
                                    <br />
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                        ForeColor="Black" AllowPaging="True" PageSize="5" 
                                        onselectedindexchanged="GridView1_SelectedIndexChanged" BackColor="White" 
                                        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
                                        onrowdeleting="GridView1_RowDeleting" 
                                        onpageindexchanging="GridView1_PageIndexChanging" >
                                    
                                        <Columns>
                                            <asp:CommandField ButtonType="Button" ShowSelectButton="True" 
                                                HeaderText="Chọn Đơn Hàng" SelectText="Chọn" />
                                            <asp:CommandField ButtonType="Button" ShowDeleteButton="True" DeleteText="Xóa" 
                                                HeaderText="Xóa Đơn Hàng" />
                                            <asp:BoundField DataField="MaDonHang" HeaderText="Mã ĐH" />
                                            <asp:BoundField DataField="TenUsers" HeaderText="Tên Người Nhận" />
                                            <asp:BoundField DataField="TenDN" HeaderText="Tên Đăng Nhập" />
                                            <asp:BoundField DataField="DiaChiGiao" HeaderText="Địa Chỉ Giao" />
                                            <asp:BoundField DataField="NgayDatHang" HeaderText="Ngày Đặt Hàng" />
                                            <asp:BoundField DataField="NgayGiao" HeaderText="Ngày Giao" />
                                            <asp:BoundField DataField="TinhTrang" HeaderText="Tình Trạng" />
                                        </Columns>
                                        <EmptyDataTemplate>
                                            Hóa Đơn Không Tồn Tại !
                                        </EmptyDataTemplate>
                                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                        <SortedDescendingHeaderStyle BackColor="#242121" />
                                    </asp:GridView>
                                    <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
                                </td>
                            </tr>
                          
                        </table>
                    </asp:View>
                        <asp:View runat="server" ID="View2">
                        <table width="640px" cellpadding="5" cellspacing="5">
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Mã ĐH:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbmaddh" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                        Tên Đăng Nhập:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbtendn" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                   Tên người nhận:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbtennguoinhan" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Địa Chỉ Giao:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbdiachigiao" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Ngày Đặt:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbngaydat" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Ngày Giao:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbngaygiao" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Tổng tiền:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbtongtien" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Phí vận chuyển:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbphivanchuyen" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Tình Trạng:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:DropDownList ID="DropDownList1" runat="server">
                                    <asp:ListItem>True</asp:ListItem>
                                    <asp:ListItem>False</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                </td>
                                <td align="left">
                                    <asp:Button ID="btnupdate" runat="server" Width="60px" Text="Update" BackColor="#A52B2B" ForeColor="White"
                                        ValidationGroup="khachhang" onclick="btnupdate_Click" />
                                    <asp:Button ID="btnback" runat="server" Width="60px" Text="Trở Về" BackColor="#A52B2B" ForeColor="White"
                                        onclick="btnback_Click" />
                                </td>
                            </tr>
                            <tr>
                            <td colspan="2" align="center">
                            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                        ForeColor="Black" GridLines="Horizontal" AllowPaging="True" PageSize="5" 
                                        onselectedindexchanged="GridView1_SelectedIndexChanged" 
                                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" >
                                        <Columns>
                                            <asp:BoundField DataField="MaSach" HeaderText="Mã Sách" />
                                            <asp:BoundField DataField="TenSach" HeaderText="Tên Sách" />
                                            <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" />
                                            <asp:BoundField DataField="Dongia" HeaderText="Giá" />
                                        </Columns>
                                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                        <SortedDescendingHeaderStyle BackColor="#242121" />
                                    </asp:GridView>
                            </td>
                            </tr>
                        </table>
                        </asp:View>
                </asp:MultiView>
            </td>
        </tr>
    </table>
</asp:Content>

